/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.kungkhies.persistence.kspace;

import com.kungkhies.domain.kspace.KSpaceMessage;
import java.util.List;

/**
 *
 * @author clayton
 */
public interface KSpaceMessageDao
{
    public void addKSpaceMessage(KSpaceMessage kSpaceMessage);

    public void saveKSpaceMessage(KSpaceMessage kSpaceMessage);

    public KSpaceMessage getKSpaceMessageById(long id);

    public List<KSpaceMessage> getKSpaceMessagesByKungkherId(long kungkherId);

    public List<KSpaceMessage> getKSpaceMessagesByKungkherName(String kungkerName);
    
    public List<KSpaceMessage> getDisplayableKSpaceMessagesByKungkherId(long kungkherId);

    public List<KSpaceMessage> getDisplayableKSpaceMessagesByKungkherName(String kungkerName);

    public void deleteKSpaceMessage(long messageId);

    public void setIsDisplayedTrue(long messageId);
    
    public void setIsDisplayedFalse(long messageId);
}
